local game = require "club.threecard.baccarat"

return {
    routes = {
        {
            path = "/club.threecard.baccarat/main",
            components = {
                background = function()
                    return require "ui.Background.Background"
                end,
                default = function() 
                    return require "club.threecard.gamelib.UI.RoomLobby.RoomLobbyUI"
                end
            }
        },

        {
            path = "/club.threecard.baccarat/game_scene",
            components = {
                background = function()
                    return require "club.threecard.baccarat.ui.background.ingame_bg"
                end,
                default = function()
                    return require "club.threecard.baccarat.ui.ingame.ingame"
                end
            }
        },

        -- 游戏帮助弹窗
        {
            path = "/club.threecard.baccarat/manual",
            redirect = "/club.threecard.baccarat/manual/page1",
            components = 
            {
                popup = function()
                    return require "club.threecard.gamelib.UI.Manual.ManualUI"
                end
            },
            children = {
                {
                    path = "page1",
                    meta = {
                        tab_name = "玩法说明标题",
                        res = "club.threecard.gamelib/ui/manual.b:ManualTabHeader",
                        page_text = "玩法说明正文"
                    },
                    component = function()
                        return require "club.threecard.gamelib.UI.Manual.ManualPage"
                    end
                }
            }
        }
    }
}